<template>
  <div class="wrapLimit clx main">
    <inventoryList v-if="activeName == 'first'" ref="indexRecord" />
  </div>
</template>

<script>
import inventoryList from './recordList.vue'

export default {
  name: 'FlowRecord',
  components: {
    inventoryList
  },
  data() {
    return {
      activeName: 'first',
      isshow: false
    }
  },
  computed: {
    qiankun() {
      console.log('computed qiankun', window.__POWERED_BY_QIANKUN__)
      return window.__POWERED_BY_QIANKUN__
    }
  },
  beforeRouteEnter(to, from, next) {
    next((vm) => {
      console.log(vm.$refs.indexRecord)
      // 处理语句，可以是 data 中的数据，也可以是 methods中的函数。vm 相当于 this
      vm.$refs.indexRecord.getList()
    })
  },
  mounted() {},
  methods: {}
}
</script>

<style lang="scss" scoped></style>
